package com.ktjiaoyu.crm.service;

import com.ktjiaoyu.crm.mapper.RoleMapper;
import com.ktjiaoyu.crm.pojo.Role;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> findAllRoles() {

        return roleMapper.selectList(null);
    }
}
